import React from 'react'
import Spinner from 'react-native-spinkit'
import { View, Text } from 'react-native'

export default ({ size = 50, color = '#000', type = 'Circle', text = '' }) => (
  <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
    <Spinner size={size} color={color} type={type} />
    <Text style={{ color, marginTop: 10 }}>{text}</Text>
  </View>
)